/*
 * @Author       : wang chao
 * @Date         : 2023-01-18 14:41:46
 * @LastEditors  : wang chao
 * @LastEditTime : 2023-10-11 14:39:34
 * @FilePath     : dev_rtu_virtualIO.h
 * @Description  :
 * Copyright 2023 BingShan, All Rights Reserved.
 */
#ifndef _SMRTU_VIO_H_
#define _SMRTU_VIO_H_

#include "stdio.h"
#include "string.h"
#include "stdint.h"
#include "dev_rtu_mb.h"

#define DBG_TAG "VIO"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>

/*
 * regs
 */
int dev_rtu_read_hold_regs(uint16_t addr, uint16_t num, uint16_t* buffer);
int dev_rtu_write_hold_regs(uint16_t addr, uint16_t num, uint16_t* buffer);
#endif
